package com.dao;

import com.entity.Shopcar;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface   ShopcarMapper {

    public List<Shopcar> getAll(Map map);

    public Integer delShopcar(Integer sid);

    public  Integer  addShopcar(Shopcar record);

    public Shopcar getById(Integer sid);

    public void  modShopcar(Shopcar record);

    public List<Map> getShopcarByUid(Integer uid);

    //查找该用户在购物车有没有添加过该图书
    public  List<Shopcar>  getByUidAndBid(@Param("uid") Integer uid, @Param("bid") Integer bid);
    //根据一组购物车Id获取一组购物车信息
    public List<Map> getListByIds(Integer[] ids);

}